package put.cs.two.to.tsp.visualization;

import javax.swing.JFrame;

public class Visualizator extends JFrame {

    private static final int WIDTH = 800;

    private static final int HEIGHT = 600;

    private static final long serialVersionUID = 5483035399956595400L;

    private static VisualizatorPanel panel;

    public Visualizator() {
        super("Traveling Salesman Problem solver");
        setSize(WIDTH, HEIGHT);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setVisible(true);

        if (panel == null) {
            panel = new VisualizatorPanel();
        }

        add(panel);
    }

    public static VisualizatorPanel getVisualizatorPanel() {
        return panel;
    }
}
